package ${groupId}.${artifactId}.dao.test;

import static org.junit.Assert.*;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.unitils.UnitilsJUnit4TestClassRunner;
import org.unitils.dbunit.annotation.DataSet;
import org.unitils.spring.annotation.SpringApplicationContext;
import org.unitils.spring.annotation.SpringBean;

import ${groupId}.${artifactId}.dao.${modelName}Dao;
import ${groupId}.${artifactId}.model.${modelName};

/**
 * ${modelName} Dao Test class.
 * 
 * @author Code Generator
 */
@RunWith(UnitilsJUnit4TestClassRunner.class)
@SpringApplicationContext({"classpath:/spring/${artifactId}-dao.xml","classpath:/spring/test-dao-${artifactId}-datasource.xml"})
public class ${modelName}DaoTest {
	private Log log = LogFactory.getLog(${modelName}DaoTest.class);

	@SpringBean("${groupId}.${artifactId}.dao.${modelName}Dao")
	private ${modelName}Dao ${modelVariableName}Dao;
	
	@Before
	public void setUp() throws Exception {
	}

	@Test
	@DataSet
	public void testAttachClean() {
	}

	@Test
	@DataSet
	public void testAttachDirty() {
	}

	@Test
	@DataSet
	public void testDelete() {
	}

	@Test
	@DataSet
	public void testFindByExample() {
	}

	@Test
	@DataSet
	public void testFindById() {
	}

	@Test
	@DataSet
	public void testFindByQuery() {
	}

	@Test
	@DataSet
	public void testMerge() {
	}
	
	@Test
	@DataSet
	public void testPersist() {
	}
	
	@Test	
	@DataSet
	public void testGetPage() {;
	}

	@Test
	@DataSet
	public void testGetPageCount() {
	}

}
